var express = require('express');
var router = express.Router();

const db = require('../public/javascripts/db');


/* GET home page. */
router.delete('/', function(req, res, next) {
    let info = req.query.express_id;
    let sql = "delete from express where express_id=?";
    let data = [info];
    db(sql, data, (result)=>{
        if(result.affectedRows == 1){
            res.json({
                code:200,
                message:"删除成功"
            })
        }
    })
});

module.exports = router;